package com.jy.api.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by lihu on 2018/1/19.
 */
@Entity
@Data
@NoArgsConstructor
@AllArgsConstructor
public class StoreConfig {

    @Id
    @Column(length = 50)
    private String id;

    @Column(length = 50)
    private String storeId;

    /**
     * 赠送优惠卷ID
     */
    @Column(length = 50)
    private String giveCouponId;


    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date addTime;
    @Column(insertable = false, updatable = false)
    @Temporal(TemporalType.TIMESTAMP)
    private Date updateTime;

    public StoreConfig(String id, String storeId) {
        this.id = id;
        this.storeId = storeId;
    }
}
